package com.moon.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

@RestController
public class MasterController {
    private final static List<String> list = Arrays.asList("去钓鱼", "不去钓鱼");

    @RequestMapping("goFishing")
    public String goFishing() {
        Collections.shuffle(list);
        return list.stream().findFirst().get() ;
    }

}
